import request from "@/utils/request.js";

export const getDetail=(id)=>{
    return request({
        method:'GET',
        url:'/goods',
        params:{
            id
        }
    })
}
export const getHotGoodsAPI=({id,type,limit=3})=>{
    return request({
        method:'GET',
        url:'/goods/hot',
        params:{
            id,
            type,
            limit
        }
    })
}